package com.neusoft.elm.po;

import java.util.Objects;

public class Business {
	private Integer businessId;
	private String password;
	private String businessName;
	private String businessAddress;
	private String businessExplain;
	private Double starPrice;
	private Double deliveryPrice;
	private String deliveryDistance;
	

	public String getDeliveryDistance() {
		return deliveryDistance;
	}


	public void setDeliveryDistance(String deliveryDistance) {
		this.deliveryDistance = deliveryDistance;
	}

	public boolean BusinessEquals(Object obj) {
     
        if (this == obj) {
            return true;
        }

     
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }

        Business other = (Business) obj;
        return Objects.equals(this.businessName, other.businessName)
                && Objects.equals(this.businessAddress, other.businessAddress)
                && Objects.equals(this.businessExplain, other.businessExplain)
                && this.starPrice == other.starPrice
                && this.deliveryPrice == other.deliveryPrice
                && Objects.equals(this.deliveryDistance, other.deliveryDistance);
         }

	
	
	
	@Override
	public String toString() {	
		return "\n商家编号："+this.businessId+
			   "\n商家名称："+this.businessName+
			   "\n商家地址："+this.businessAddress+
			   "\n商家介绍："+this.businessExplain+
			   "\n起送费："+this.starPrice+
			   "\n配送费："+this.deliveryPrice+
			   "\n配送范围："+this.deliveryDistance;
	}
	
	
	
	public Integer getBusinessId() {
		return businessId;
	}
	public void setBusinessId(Integer businessId) {
		this.businessId = businessId;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getBusinessName() {
		return businessName;
	}
	public void setBusinessName(String businessName) {
		this.businessName = businessName;
	}
	public String getBusinessAddress() {
		return businessAddress;
	}
	public void setBusinessAddress(String businessAddress) {
		this.businessAddress = businessAddress;
	}
	public String getBusinessExplain() {
		return businessExplain;
	}
	public void setBusinessExplain(String businessExplain) {
		this.businessExplain = businessExplain;
	}
	public Double getStarPrice() {
		return starPrice;
	}
	public void setStarPrice(Double starPrice) {
		this.starPrice = starPrice;
	}
	public Double getDeliveryPrice() {
		return deliveryPrice;
	}
	public void setDeliveryPrice(Double deliveryPrice) {
		this.deliveryPrice = deliveryPrice;
	}
	

}
